package com.drama.api.sys.user.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
public class SysUserSearchVO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "用户ID[模糊搜索]")
    private String id;

    @ApiModelProperty(value = "用户名称[模糊搜索]")
    private String userName;

    @ApiModelProperty(value = "用户状态(1启用 2禁用)")
    private Integer useState;

    @ApiModelProperty(value = "所属机构ID【精确搜索】")
    private String organizationId;

    @ApiModelProperty(value = "当前用户机构Id",hidden = true)
    private String sysUserOrgId;


    @ApiModelProperty(value = "页数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;


    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}
